#include "./util/VecOpt.h"
#include <SFML/System/Vector2.hpp>
#include <iostream>
using namespace sf ;
using namespace std ;
using namespace Util;
int main(){
    using Vec = Vector2f;
    Vec v1 ({1,1});
//    cout << length(v1) << endl ;
    cout << normalize(Vec({100,0})).x << endl ;
}




#ifdef _COLLIDER_ANIMA

#include <iostream>
#include "./Physics/Collision/Collision.h"
#include <SFML/Graphics.hpp>

int main() {
    // Create the main window
    sf::RenderWindow window(sf::VideoMode(800, 600), "Collider Test");

    // Set up the colliders
    Phy::Collision::AABB aabb({200, 150}, {100, 50});
    Phy::Collision::CircleCollider circle({400, 300}, 50);
    Phy::Collision::PointCollider point({600, 400});

    while (window.isOpen()) {
        sf::Event event;
        while (window.pollEvent(event)) {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        // Clear the window with a black color
        window.clear(sf::Color::Black);

        // Draw the colliders
        Phy::Collision::drawCollider(window, aabb);
        Phy::Collision::drawCollider(window, circle);
        Phy::Collision::drawCollider(window, point);

        // Update the window
        window.display();
    }

    return 0;
}
#endif